/**
 * author: 何其沆(pooky)
 * desc: ampm - api
 * date: 2022-03-22
 */

import { get, post } from '@/utils/request.js'
import api from '@/config/index.js'

export default {
  /**
   * 获取Performance列表（换）
   * @returns {Promise | Promise<unknown>}
   */
  getAmPmBranch() {
    return get(api.API_VERSION + '/Admin/Others/AMPM/GetBranch', {}, false)
  },
  /**
   * 获取AM&PM列表
   * @param data
   * @returns {Promise | Promise<unknown>}
   */
  getList(data) {
    return post(api.API_VERSION + '/Admin/Others/AMPM/QueryPages', data, false)
  },
  /**
   * 获取AM&PM的Clients列表
   * @param data
   * @returns {Promise | Promise<unknown>}
   */
  getClientsList(data) {
    return post(api.API_VERSION + '/Admin/Others/AMPM/AMPMClientsList', data, false)
  }
}
